class Action:
    def __init__(self,  tileId, quiz):
	self.tileId = tileId
	if( quiz != None):
	    self.question = quiz.question
	    self.options = quiz.options
	else:
	    self.question = None
	    self.options = None
    def __str__(self):
        if(self.question == None):return ''
	ret =  self.tileId.encode('utf=8') + " " + self.question.encode('utf-8') 
        return ret + " " + str(self.options)
